<template>
  <div>
    {{ $route.params.id }}
    {{ editorKnow }}
  </div>
</template>

<script>
import { mapState, mapActions } from 'vuex'
export default {
  computed: {
    ...mapState({
      editorKnow: (state) => state.knowledge.editorKnow
    })
  },
  async mounted() {
    // console.log(this.$route.params.id);
    await this.editorKnowledge(this.$route.params.id)
  },
  created() {
    console.log(this.editorKnow)
  },
  methods: {
    ...mapActions({
      editorKnowledge: 'knowledge/editorKnowledge'
    })
  }
}
</script>

<style>
</style>
